package ch.zbw.sysVentory.agent.readData;

public class ReadOS {

    
    public static String getName() {
	String s = CmdLesen.lesen("wmic os get name");
	s = s.replaceAll("Name", "");
	int i = s.indexOf("C:\\");
	if (i>0){
	    s = s.substring(0, i-1);    
	}
	s = s.trim();
	return s;
    }

    public static String getVersion() {
	String s = CmdLesen.lesen("wmic os get version");
	s = s.replaceAll("Version", "");
	s = s.trim();
	return s;
    }

    public static String getArchitektur() {
	String s = CmdLesen.lesen("wmic os get OSArchitecture");
	s = s.replaceAll("OSArchitecture", "");
	s = s.trim();
	return s;
    }
    

}